<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderSidAddIncomeType extends Migrator
{
    public function up()
    {

        $this->table('coupon_order_sid')
            ->addColumn('income_type', 'integer', ['limit' => 2, 'default' => 1, 'comment' => 'agent_service_config 表设置的类型 1返佣，2接口'])
            ->update();
    }

    public function down()
    {
        $this->table('coupon_order_sid')->removeColumn('income_type');
    }
}
